import * as path from 'path'
import { defineConfig } from 'vite'
import { build, plugins } from './config'
// https://vitejs.dev/config/
export default defineConfig({
	plugins,
	build,
	resolve: {
		// 配置路径别名
		alias: {
			'@': path.resolve(__dirname, './src')
		}
	},
	css: {
		preprocessorOptions: {
			scss: {
				// quietDeps: true, // 可以尝试，但在高版本中似乎不起作用
				silenceDeprecations: ['legacy-js-api']
			}
		}
	}
})
